import request from '@/utils/request'


export function  materialDict() {
  return request({
    url: '/reference/material/dict',
    method: 'get',
  })
}



// 查询参考材料列表
export function listMaterial(query) {
  return request({
    url: '/reference/material/list',
    method: 'get',
    params: query
  })
}

// 查询参考材料详细
export function getMaterial(id) {
  return request({
    url: '/reference/material/' + id,
    method: 'get'
  })
}

// 新增参考材料
export function addMaterial(data) {
  return request({
    url: '/reference/material',
    method: 'post',
    data: data
  })
}

// 修改参考材料
export function updateMaterial(data) {
  return request({
    url: '/reference/material',
    method: 'put',
    data: data
  })
}

// 删除参考材料
export function delMaterial(id) {
  return request({
    url: '/reference/material/' + id,
    method: 'delete'
  })
}

// 导出参考材料
export function exportMaterial(query) {
  return request({
    url: '/reference/material/export',
    method: 'get',
    params: query
  })
}
